<?php
	date_default_timezone_set('Asia/Shanghai');
	date_default_timezone_set("PRC");

	include_once "plugin/ezsql/ez_sql_core.php";
	include_once "plugin/ezsql/ez_sql_mysql.php";
	
	//$db = new ezSQL_mysql('root','11111111','lab','localhost:3306');
	$db = new ezSQL_mysql('zerninn1_dblink','zerninn1_dblink','zerninn1_lab','localhost');

	
	
	$test = $_POST["words"];

	$db->query("INSERT INTO `data` (content,create_date)VALUES('".$test."',now())");

	header("Location:index.php");
?>